import pyautogui as g
# import time

# print()
while True:
    a=input('已启动，请输入指令（G/g:获取坐标，e/E:关闭）：')
    if a=='e' or a=='E':
        break
    elif a=='g' or a=='G':
        wm,wh=g.position()
        print(wm,wh)
    else:
        continue
    
# wm,wh=g.position()